package wzh000;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DiscardCardString {
	private String cmd;
	private List<List<String>> cards;
	private boolean last_cards;
	
	public DiscardCardString(String msg, boolean lastCard){
		this.cmd = msg;
		this.last_cards = lastCard;
		//this.cards = new HashMap<List<String>, List<String>>();
		this.cards = new ArrayList<List<String>>();
	}
	
	public void fillinCards(Card removedCard, Card card){
		List<String> a = new ArrayList<String>();
		a.add(removedCard.getValue());
		a.add(removedCard.getType());
		List<String> b = new ArrayList<String>();
		b.add(card.getValue());
		b.add(card.getType());
		this.cards.add(a);
		this.cards.add(b);
	}
}